import axios from 'axios';
import {
  loginreq,
  req,
  captchareq,
  req_info,
  reqPage,
  reqDeleteUser,
  Adduser,
  Permission,
  singer,
  file,
  number
} from './axiosFun';

const BaseUrl = "http://60.205.253.99:7654/"
// const BaseUrl = "http://127.0.0.1:7654/"

//获取某个店铺评论的数量
export const getCommentNumber=(id)=>{return number("get",BaseUrl+`comment/getCommentNumber?shop_id=${id}`)}
//查询某个商店的评论
export const queryComments=(id)=>{return number("get",BaseUrl+`comment/queryComments?shop_id=${id}`)}
//添加一条评论
export const addANewComment=(id,comment)=>{return singer("post",BaseUrl+`comment/addANewComment?shop_id=${id}&comment=${comment}`)}
//评论点赞
export const commentLike=(id)=>{return singer("post",BaseUrl+`comment/commentLike?id=${id}`)}
